<?php

namespace App\Repositories\Contracts;

use App\Repositories\BaseInterface\RepositoryInterface;

/**
 * Created by PhpStorm.
 * User: zxwwjs@hotmail.com
 * Date: 2017-6-28
 * Time: 22:12
 */
interface UserRepositoryInterface extends RepositoryInterface {

  /**
   * @param int $id
   * @param string $password
   *
   * @return boolean
   */
  public function changePassword( $id, $password );

  /**
   *
   * @param integer $userId
   * @param integer $attachmentId
   *
   * @return mixed|null
   */
  public function setAvatar( $userId, $attachmentId );

}
